package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.Business;
import cn.gson.crm.model.pojos.Employee;
import cn.gson.crm.model.pojos.User;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface BusinessMapper {
     //查询所有
     public List<Business> selectbusiness();
     //删除
     public int update1 (@Param("businessAppstate") String businessAppstate,@Param("businessId") int businessId);
     //条件查询
     public List<Business> selectbusiness2(
            @Param("businessStartTime") String businessStartTime,
            @Param("businessOverTime") String  businessOverTime,
            @Param("businessPlace") String businessPlace,
            @Param("businessName") String businessName
     );
     //查询员工
     public List<Employee> selectEmployee();
     //获取登陆人
     public List<User> selectUserRole(@Param("yid") int ygId);
}
